Bottom Hat
Enhances the fine details or small objects within an image by subtracting an opened version of the image from the original.
ðžïļ Image options and parameters of bottomHat
method
ð Mask options and parameters of bottomHat
method
Similarly to top hat, bottom hat operation computes the difference between two images. However, if top hat was using opening method, bottom hat is using closing method. The purpose of bottom hat(or, as it is also called, black-hat) is to enhance and extract darker regions of the image.
Kinds of images compatible with algorithmâ
Image property | What it means | Possible values |
---|---|---|
bitDepth | number of bits per channel | [1,8,16] |
components | number of components | [1] |
alpha | is alpha channel allowed | false |
Parameters and default valuesâ
info
Parameters and options for Images and Masks are the same.
options
Optionsâ
Property | Required | Default value |
---|---|---|
iterations | no | 1 |
kernel | no | [[1, 1, 1],[1, 1, 1],[1, 1, 1]] |
info
The method is also available for Masks.